package com.doordu.web;

import com.doordu.clint.UserClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zxw
 * @date 2020/8/7 11:31
 */
@RestController
@RequestMapping("/consumer")
public class ConsumerController {
    @Autowired
    private UserClient userClient;

    @GetMapping("/{id}")
    public void printProvider(@PathVariable Integer id){
        userClient.getPathValue(id);
    }
}
